package com.yidu.t286.domain;
/*
 * @description:
 * @author:文杰
 * @date  :2021/7/30 0030上午 8:56
 */

import java.io.Serializable;
import java.util.List;

public class Fun implements Serializable {

    private String       Id; //功能ID
    private String    title;//父功能名称
    private String  href; //功能路径
    private String paths;
    private String components;
    private String icon;//图标
    private String funType;//
    private String parentId;
    //定义一个复选框状态变量--用于修改权限时复选框
    private boolean checked;
    //定义一个保存子数结合--子功能
    private List<Fun> child =null;

    public Fun() {
    }

    @Override
    public String toString() {
        return "Fun{" +
                "Id='" + Id + '\'' +
                ", title='" + title + '\'' +
                ", href='" + href + '\'' +
                ", icon='" + icon + '\'' +
                ", checked=" + checked +
                ", child=" + child +
                '}';
    }

    public String getId() {
        return Id;
    }

    public void setId(String Id) {
        this.Id = Id;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(int s) {
        if (s!=0){
            this.checked = true;
        }else{
            this.checked=false;
        }

    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<Fun> getChild() {
        return child;
    }

    public void setChild(List<Fun> child) {
        this.child = child;
    }

    public String getFunType() {
        return funType;
    }

    public void setFunType(String funType) {
        this.funType = funType;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getPaths() {
        return paths;
    }

    public void setPaths(String paths) {
        this.paths = paths;
    }

    public String getComponents() {
        return components;
    }

    public void setComponents(String components) {
        this.components = components;
    }
}
